<template>
	<view class="imgs">
		<img :src="imageUrl" mode="widthFix" />
		<view class="name">
			{{name}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				imageUrl: '',
				name: ''
			}
		},
		onLoad(e) {
			uni.setNavigationBarTitle({
				title: e.name
			});
			this.name = e.name
			this.$u.api.receiveMoneyAccount({
					code: e.code
				})
				.then(res => {
					this.imageUrl = res?.data?.imageUrl
					console.log(res?.data?.imageUrl, 666666);

				});
		}
	}
</script>

<style scoped lang="scss">
	.imgs {
		margin: 50px 5%;
		border-radius: 10px;
		background: #efefef;
		padding: 15px;

		img {
			display: block;
			width: 100%;
			height: auto;
		}
		.name{
			text-align: center;
			padding-top: 20px;
		}
	}
</style>
